#include "joystickdriver.c"

task main{
  eraseDisplay();
  while (true){
    getJoystickSettings(joystick);
    if (joy1Btn(1) == 1){
      nxtDisplayTextLine(1,"pushed");
    }
    else{
      nxtDisplayTextLine(1, "not pushed");
    }

  }
}
